package com.ui.basic.assembler.masterdata;

import java.util.List;

import com.common.basic.base.BaseAssembler;
import com.ui.basic.command.masterdata.CommandIdentification;
import com.ui.basic.ibatis.model.masterdata.TblMIdentification;

public class IdentificationAssembler implements
		BaseAssembler<TblMIdentification, CommandIdentification> {

	public CommandIdentification toDto(TblMIdentification entity) {
		CommandIdentification dto = new CommandIdentification();
		dto.setId(entity.getId());
		dto.setIdCode(entity.getCode());
		dto.setIdName(entity.getName());
		return dto;
	}

	public List<CommandIdentification> toDtoList(
			List<TblMIdentification> listEntity) {

		return null;
	}

	public TblMIdentification toEntity(CommandIdentification dto) {
		TblMIdentification entity = new TblMIdentification();
		entity.setId(dto.getId());
		entity.setCode(dto.getIdCode());
		entity.setName(dto.getIdName());

		return entity;
	}

}
